package com.sangmo.fts.teacher.model;

import com.sangmo.boot.framework.data.entity.general.AuditEntity;
import com.sangmo.boot.framework.data.json.meta.ExtView;
import com.sangmo.boot.framework.plugin.dataview.def.meta.DataField;
import com.sangmo.boot.framework.plugin.dataview.def.meta.DataView;
import com.sangmo.fts.common.IConstants;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "duration_ratio_setting")
@DataView
@ExtView
public class DurationRatioSetting extends AuditEntity {

    @DataField(value = IConstants.DATA_TYPE.LONG, required = true, index = true)
    private Long scoreSettingId;

    @DataField(value = IConstants.DATA_TYPE.INTEGER_POSITIVE, required = true)
    private int minValue;

    @DataField(value = IConstants.DATA_TYPE.INTEGER_POSITIVE, required = true)
    private int maxValue;

    @DataField(value = IConstants.DATA_TYPE.INTEGER_POSITIVE, required = true)
    private int score;

    public Long getScoreSettingId() {
        return scoreSettingId;
    }

    public void setScoreSettingId(Long scoreSettingId) {
        this.scoreSettingId = scoreSettingId;
    }

    public int getMinValue() {
        return minValue;
    }

    public void setMinValue(int minValue) {
        this.minValue = minValue;
    }

    public int getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(int maxValue) {
        this.maxValue = maxValue;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
